#include<iostream>
#include<algorithm>

using namespace std;

typedef long long ll;

const int N = 1e7+9;

ll gcd(ll a,ll b){
	a=abs(a);
	b=abs(b);
	return b==0?a:gcd(b,a%b);
}

ll lcm(ll a,ll b){
	return a/gcd(a,b)*b;
}

void solve(){
	
}

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
	
	cout<<gcd(-16,-28)<<endl;
	cout<<lcm(16,28)<<endl;
	
	solve(); 
	
	
	return 0;
} 
